package com.example.mytestapplication;

import com.example.mytestapplication.bean.BoxDeviceVo;
import com.example.mytestapplication.bean.DataValue;
import com.example.mytestapplication.bean.ReturnValue;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by wei on 2017/8/11.
 */

public interface TvBoxApi {

    @GET("/api/tvbox/device/getBoxByWirelessMac")
    Observable<DataValue<BoxDeviceVo>> getBoxByWirelessMac(
            @Query("wirelessMac") String wirelessMac
    );

    /**
     *
     *
     * @param busiType 业务类型 1：语音留言
     * @param senderId 留言人，客户全局cust_global_id
     * @param messageFile 消息文件存放路径
     * @param recFamilyId 接收家庭ID
     * @return
     **/
    @FormUrlEncoded
    @POST("/api/base/common/rptVoiceMessage")
    Observable<ReturnValue> rptVoiceMessage(
            @Field("busiType") String busiType,
            @Field("senderId") String senderId,
            @Field("messageFile") String messageFile,
            @Field("recFamilyId") String recFamilyId
    );
}
